import request from "@/utils/request";

//查询班级接口,表格渲染
export function getTableData(query) {
  return request({
    url: 'student/class/list',
    method: 'get',
    params: query
  })
}

//学院名称下拉框接口
export function getCollege(college) {
  return request({
    url: '/system/dept/list',
    method: 'get',
    params: college,
  })
}


//添加
export function getAddClass(data) {
  return request({
    url: '/student/class/addClass',
    method: 'post',
    data: data
  })
}

//编辑,保存
export function getEdit(data) {
  return request({
    url: '/student/class/update',
    method: 'post',
    data
  })
}

//班级管理删除
export function getDelete(data) {
  return request({
    url: '/student/class/delete',
    method: 'post',
    data
  })
}

//导入班级
export function getImport() {
  return request({
    url: '/student/class/import',
    method: 'post',
  })
}

